package com.yang.news.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yang.news.dao.entity.HotSearchRecord;
import com.yang.news.model.dto.HotSearchDTO;
import com.yang.news.model.page.Page;

import java.util.List;

/**
 * @author Billyang
 * @date 2024/9/3 11:40
 */
public interface HotSearchRecordService extends IService<HotSearchRecord> {

    Boolean batchSave(List<HotSearchRecord> hotSearchRecordList);

    List<HotSearchRecord> queryTodayByType(String type);

    /**
     * 根据标题查询热搜
     *
     * @param title    标题
     * @param pageNum  页码
     * @param pageSize 页大小
     * @return 热搜
     */
    Page<HotSearchDTO> pageQueryHotSearchByTitle(String title, Integer pageNum, Integer pageSize);
}
